home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 1
/
The Arsenal Files (Arsenal Computer).ISO
/
novell
/
xtrdos.exe
/
PATCHXTR.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-12-17
|
4KB
|
171 lines
echo off
CLS
echo *** MAKE SURE THAT YOU USE THE ORIGINAL (UNPATCHED) RELEASED VERSION
echo OF THE PRODUCT YOU ARE PATCHING.
echo PATCH.EXE will not allow you to patch a product that has already
echo been patched.
echo
::
SET XTRFLAG=410
::
IF %1! == ! GOTO PARAM
IF %1 == XTRDOS GOTO XTRDOS
IF %1 == XTROS2 GOTO XTROS2
IF %1 == XQLCALLS GOTO XQLCALLS
IF %1 == XQLP GOTO XQLP
IF %1 == XQLPO GOTO XQLP
IF %1 == xtrdos GOTO XTRDOS
IF %1 == xtros2 GOTO XTROS2
IF %1 == xqlcalls GOTO XQLCALLS
IF %1 == xqlp GOTO XQLP
IF %1 == xqlpo GOTO XQLP
GOTO PARAM
::
:XTRDOS
echo REMINDER:
echo You also need to patch XQLP.EXE and XQLPO.EXE
echo .
echo XTRIEVE v4.10
::
SET PATCHXTR=%1.410
SET RTPXTR=%1.RTP
SET FILEXTR=XTRIEVE.EXE
SET ORGXTR=XTR410.ORG
GOTO PATCH
::
:XTR411
::
echo XTRIEVE v4.11a
::
SET PATCHXTR=%1.411
SET RTPXTR=%1.RTP
SET FILEXTR=XTRIEVE.EXE
SET ORGXTR=XTR411.ORG
SET XTRFLAG=411
GOTO PATCH
::
:XTROS2
echo REMINDER:
echo You also need to patch XQLCALLS.DLL
echo .
echo XTRIEVE OS/2 v4.11a
::
SET PATCHXTR=%1.411
SET RTPXTR=%1.RTP
SET FILEXTR=XTRIEVE.EXE
SET ORGXTR=XTRO411.ORG
GOTO PATCH
::
:XQLCALLS
echo REMINDER:
echo You also need to patch XTRIEVE.EXE
::
IF EXIST XQLCALLS.ORG GOTO XQLNEXT
::
echo .
echo *** WARNING ***
echo (XQLCALLS.ORG from the original XTRIEVE/2 for OS/2 diskette is required
echo for this patch)
GOTO END
::
:XQLNEXT
::
SET PATCHXTR=%1.211
SET RTPXTR=%1.RTP
SET FILEXTR=%1.DLL
SET ORGXTR=%1.ORG
GOTO PATCH
::
:XQLP
echo REMINDER:
echo You also need to patch XTRIEVE.EXE
SET PATCHXTR=%1.21A
SET RTPXTR=%1.RTP
SET FILEXTR=%1.EXE
SET ORGXTR=%121A.ORG
GOTO PATCH
::
:PATCH
::
ECHO CHECKING FILES ............
::
IF NOT EXIST PATCH.EXE GOTO NOPAT
IF NOT EXIST %PATCHXTR% GOTO PATERR
IF NOT EXIST %FILEXTR% GOTO FILERR
IF NOT EXIST %ORGXTR% REN %FILEXTR% %ORGXTR%
:PATORG
::
ECHO PREPARING FILES ...........
::
COPY %ORGXTR% %FILEXTR%
COPY %PATCHXTR% %RTPXTR%
::
ECHO STARTING PATCH PROCESS ....
::
PATCH %RTPXTR%
DEL %RTPXTR%
IF %XTRFLAG% == 411 GOTO FIXED
IF %1 == XTRDOS GOTO XTR411
IF %1 == xtrdos GOTO XTR411
GOTO FIXED
::
:NOPAT
echo
echo CANNOT FIND PATCH.EXE
echo
echo The Patch Install Utility (PATCH.EXE) is required to install
echo the patches for this product. Please copy PATCH.EXE to the directory
echo you are working in............................................
GOTO END
::
:PATERR
echo
echo CANNOT FIND %PATCHXTR%
GOTO END
::
:FILERR
IF EXIST %ORGXTR% GOTO PATORG
echo
echo CANNOT FIND %FILEXTR%
GOTO END
::
:PARAM
echo
echo THE FORMAT IS:
echo
echo PATCHXTR [filename]
echo
echo WHERE [filename] IS:
echo
echo - XTRDOS ......... XTRIEVE Plus v4.10
echo - XQLP ......... XQLP v2.11a
echo - XQLPO ......... XQLPO v2.11a
echo - XTROS2 ......... XTRIEVE/2 for OS/2 v4.11a
echo - XQLCALLS ......... XQLCALLS v2.11 (Local)
echo
GOTO END
::
:FIXED
echo
echo
echo ***** NOTICE: The %ORGXTR% file in your current directory is the
echo original. This batch file renames %FILEXTR% to %ORGXTR%
echo if it does not find %ORGXTR%. This will allow you to
echo keep the original on hand without patches applied.
echo The next time the patches are applied, it looks for
echo the %ORGXTR% file first. Thus, patches will always be
echo applied to the unpatched version.
echo
echo ** If PATCH.EXE returns:
echo 'Invalid copy of file found. No update can be done.'
echo you will need to delete the %ORGXTR% file and
echo copy the unpatched %FILEXTR% to this directory.
echo
::
:END
SET PATCHXTR=
SET RTPXTR=
SET FILEXTR=
SET ORGXTR=
SET XTRFLAG=